package com.bruce.langchain4j.modelscope.service.impl;

import org.springframework.stereotype.Service;

import com.bruce.langchain4j.modelscope.service.ModelScopeService;

import dev.langchain4j.model.chat.ChatLanguageModel;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

@Service
@Slf4j
@RequiredArgsConstructor
public class ModelScopeServiceImpl implements ModelScopeService {

    private final ChatLanguageModel modelScopeChatModel;

    @Override
    public String chat(String message) {
        return modelScopeChatModel.chat(message);
    }

}
